package com.baizhi.auction.entity;

//用户表
public class User {

    private int user_id;//用户编号
    private String user_name;//用户名
    private String user_password;//用户密码
    private String user_card_no;//用户身份证号
    private String user_tel; //用户电话
    private String user_address; //用户地址
    private String user_post_number;//用户邮政编号
    private int  user_is_admin; //用户是否是管理员，0是竞拍者，1是管理员，默认值是0
    private String user_question; //用户找回密码的问题
    private String user_answer;//用户找回密码答案
    public int getUser_id() {
        return user_id;
    }
    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }
    public String getUser_name() {
        return user_name;
    }
    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }
    public String getUser_password() {
        return user_password;
    }
    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }
    public String getUser_card_no() {
        return user_card_no;
    }
    public void setUser_card_no(String user_card_no) {
        this.user_card_no = user_card_no;
    }
    public String getUser_tel() {
        return user_tel;
    }
    public void setUser_tel(String user_tel) {
        this.user_tel = user_tel;
    }
    public String getUser_address() {
        return user_address;
    }
    public void setUser_address(String user_address) {
        this.user_address = user_address;
    }
    public String getUser_post_number() {
        return user_post_number;
    }
    public void setUser_post_number(String user_post_number) {
        this.user_post_number = user_post_number;
    }
    public int getUser_is_admin() {
        return user_is_admin;
    }
    public void setUser_is_admin(int user_is_admin) {
        this.user_is_admin = user_is_admin;
    }
    public String getUser_question() {
        return user_question;
    }
    public void setUser_question(String user_question) {
        this.user_question = user_question;
    }
    public String getUser_answer() {
        return user_answer;
    }
    public void setUser_answer(String user_answer) {
        this.user_answer = user_answer;
    }
    public User(int user_id, String user_name, String user_password, String user_card_no, String user_tel,
                String user_address, String user_post_number, int user_is_admin, String user_question, String user_answer) {
        super();
        this.user_id = user_id;
        this.user_name = user_name;
        this.user_password = user_password;
        this.user_card_no = user_card_no;
        this.user_tel = user_tel;
        this.user_address = user_address;
        this.user_post_number = user_post_number;
        this.user_is_admin = user_is_admin;
        this.user_question = user_question;
        this.user_answer = user_answer;
    }
    public User(String user_name, String user_password, String user_card_no, String user_tel, String user_address,
                String user_post_number, int user_is_admin, String user_question, String user_answer) {
        super();
        this.user_name = user_name;
        this.user_password = user_password;
        this.user_card_no = user_card_no;
        this.user_tel = user_tel;
        this.user_address = user_address;
        this.user_post_number = user_post_number;
        this.user_is_admin = user_is_admin;
        this.user_question = user_question;
        this.user_answer = user_answer;
    }
    public User() {
        super();
    }
    public User(String user_name, String user_password) {
        super();
        this.user_name = user_name;
        this.user_password = user_password;
    }
    @Override
    public String toString() {
        return "User [user_id=" + user_id + ", user_name=" + user_name + ", user_password=" + user_password
                + ", user_card_no=" + user_card_no + ", user_tel=" + user_tel + ", user_address=" + user_address
                + ", user_post_number=" + user_post_number + ", user_is_admin=" + user_is_admin + ", user_question="
                + user_question + ", user_answer=" + user_answer + "]";
    }


}
